﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PUCP.SI2.SGIRP.BE;
using PUCP.SI2.SGIRP.DA;
using System.Data;
namespace PUCP.SI2.SGIRP.BC
{
    public class CentroComercialBC
    {

        static List<CentroComercialBE> lista = new List<CentroComercialBE>();
        public static void agregarCentroComercial(CentroComercialBE nuevoCC)
        {
            DAOCC daoCC = new DAOCC();
            daoCC.addCC(nuevoCC);
        }

        public DataTable gtCmbCentroComercial()
        {
            DAOCC daoCC = new DAOCC();
            return daoCC.getCmbCentroComercial();
        }

        public static List<CentroComercialBE> getAllCC()
        {
            DAOCC daoCC = new DAOCC();
            lista = daoCC.QueryCC();
            return lista;
        }
    }
}
